<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Log
 *
 * @author felipe
 */
class Voitech_Log {

    protected function __construct(){}

    static public function gerarLog($mensagem){
         $log = new Zend_Log(new Zend_Log_Writer_Stream(APPLICATION_PATH.'/../data/log/voitech.log'));
         $log->log($mensagem, Zend_Log::INFO);
//         try{
//            
//            $consumer = new Zend_Oauth_Consumer(Voitech_Config::TWITTER);
//
//            // fetch a request token
//            $token = $consumer->getRequestToken();
//
//            // persist the token to storage
//            $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
//
//            // redirect the user
//            $consumer->redirect();
//            
//            //echo "OK";
//         }catch(Exception $e){
//             echo $e->getMessage();
//         }
    }
}
